package com.hilihili.util;

import cn.hutool.core.date.DateUtil;

/**
 * 定义一个对象
 *
 * @Author xhc
 * @Date 2023/11/14 20:31
 * @Version 1.0
 */
public class Constant {
    // 默认请求成功
    public static final Integer DEFAULT_SUCCESS = 10000;
    // 默认请求失败//msg: '出现错误'
    public static final Integer DEFAULT_ERROR = 188;
    // 定义错误返回-缺少必要参数msg: '缺少必要参数'
    public static final Integer LACK = 199;
    //msg: 'Token验证失败'
    public static final Integer TOKEN_ERROR = 401;
    /**
     * 定义错误返回-用户名或密码错误msg: '用户名或密码错误'
     */
    public static final Integer LOGIN_ERROR = 101;
    //msg: '该用户名已存在'
    public static final Integer REGISTER_ERROR = 102;
    //msg: '数据校验失败'
    public static final Integer VERIFICATION_ERROR = 103;
    //msg: '验证码不正确'
    public static final Integer CAPTCHA_ERROR = 104;
    /**
     * msg: '该用户名不存在'
     */
    public static final Integer NULL_ERROR = 105;
    /**
     * 没有查询到视频
     */
    public static final Integer VIDEO_NULL_ERROR = 106;


    /**
     * 用户在线有效期（分钟）
     */
    public static final Integer USER_CAPTCHA_EXPIRATION = 12 * 60;

    public static final String USER_TOKEN = "user_token";
}
